package com.mdd.front.service.yangyangLeadingEnterprise;

import com.mdd.common.core.PageResult;
import com.mdd.common.entity.yangyangLeadingEnterprise.TAppPolicyNews;
import com.mdd.common.entity.yangyangLeadingEnterprise.param.AppPolicyNewsParam;
import com.mdd.front.validate.common.PageValidate;
import com.mdd.front.validate.yangyangLeadingEnterprise.TAppPolicyNewsCreateValidate;
import com.mdd.front.validate.yangyangLeadingEnterprise.TAppPolicyNewsSearchValidate;
import com.mdd.front.validate.yangyangLeadingEnterprise.TAppPolicyNewsUpdateValidate;
import com.mdd.front.vo.yangyangLeadingEnterprise.TAppPolicyNewsDetailVo;
import com.mdd.front.vo.yangyangLeadingEnterprise.TAppPolicyNewsListedVo;

import java.util.List;

/**
 * app政策新闻服务接口类
 * @author LikeAdmin
 */
public interface ITAppPolicyNewsService {

    /**
     * app政策新闻列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<TAppPolicyNewsListedVo>
     */
    PageResult<TAppPolicyNewsListedVo> list(PageValidate pageValidate, TAppPolicyNewsSearchValidate searchValidate);

    /**
     * app政策新闻详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return TAppPolicyNewsDetailVo
     */
    TAppPolicyNewsDetailVo detail(Integer id);

    /**
     * app政策新闻新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(TAppPolicyNewsCreateValidate createValidate);

    /**
     * app政策新闻编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(TAppPolicyNewsUpdateValidate updateValidate);

    /**
     * app政策新闻删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

    /**
     * app政策新闻列表
     * @param param
     * @return
     */
    List<TAppPolicyNews> selectList(AppPolicyNewsParam param);

    /**
     * 根据id查询政策新闻
     * @param id
     * @return
     */
    TAppPolicyNews selectById(Integer id);
}
